package nacos.consumer.server.controller;

import lombok.extern.slf4j.Slf4j;
import nacos.consumer.server.service.ConsumerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
public class TestConsumerController {
    @Resource
    ConsumerService consumerService;
    @GetMapping("/")
    public String helloCO(){
        //从消费者返回的数据
        String s = consumerService.helloPO();
        return  s;
    }

}
